package com.tuanzi.loan.vo.response.receipt.product;

import java.math.BigDecimal;

import com.tuanzi.loan.core.vo.IdentityResponse;
import com.tuanzi.server.loan_base.constant.LoanReceiptProductStatus;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Ray 2017/09/21
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ReceiptProductInfoSearchResponse extends IdentityResponse {

	private String name;

	private String logo;

	private String summary;

	private BigDecimal unitPrice;

	private Integer limitOrderOfDay;

	private Integer status;

	private Integer sort;

	private Boolean oneKey;

	public boolean showOnlineBottom(){
		return LoanReceiptProductStatus.OFFLINE.getStatus() == status;
	}

	public boolean showOfflineBottom(){
		return LoanReceiptProductStatus.ONLINE.getStatus() == status;
	}

}
